From: Sebastian Kemper Date: Sat, 3 Feb 2018 12:48:58 +0000 (+0100) Subject: kamailio-5.x: improve module depends X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22http:/www.crowdsec.net/%22/%22https:/collectd.org/%22http:/www.crowdsec.net/%22?a=commitdiff_plain;h=07bcdd9fa76f6019542cdb55af127743c1f6239a;p=feed%2Ftelephony.git kamailio-5.x: improve module depends Currently the Makefile pulls in depends even for packages which are not selected. Fix this by prefixing the depends with the respective PACKAGE_* item. Signed-off-by: Sebastian Kemper --- diff --git a/net/kamailio-5.x/Makefile b/net/kamailio-5.x/Makefile index 9e9a825..0640544 100644 --- a/net/kamailio-5.x/Makefile +++ b/net/kamailio-5.x/Makefile @@ -93,7 +93,7 @@ define BuildKamailio5Module define Package/kamailio5-mod-$(subst _,-,$(1)) $$(call Package/kamailio5/Default) TITLE:=$(2) for Kamailio5 - DEPENDS:=kamailio5 $(4) + DEPENDS:=kamailio5 $(patsubst +%,+PACKAGE_kamailio5-mod-$(subst _,-,$(1)):%,$(4)) endef define Package/kamailio5-mod-$(subst _,-,$(1))/install